<?php
/**
 * This file is part of Hyperf Mall.
 *
 * @link     https://gitee.com/scwlkj/hyperf_mall
 * @contact  hyperf_mall@163.com
 */

namespace App\JsonRpc;

use App\JsonRpc\Interfaces\IndexServiceInterface;
use Hyperf\RpcServer\Annotation\RpcService;

/**
 * @RpcService(name="IndexService", protocol="jsonrpc", server="jsonrpc")
 */
class IndexService extends BaseService  implements IndexServiceInterface
{
    public function test(int $a, int $b) : int
    {
        return $a + $b;
    }

    public function init()
    {
        // TODO: Implement init() method.
    }
}
